<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="gbk"/>
    <link rel="shortcut icon" href="../../../../kissy-dpl/base/assets/favicon.ico"/>
    <link rel="stylesheet" href="../../../../kissy-dpl/base/assets/reset.css"/>
    <link rel="stylesheet" href="../../../../kissy-dpl/base/assets/kissy-docs.css"/>
    <link rel="stylesheet" href="assets/image-tagging.css"/>
    <script src="http://docs.kissyui.com/kissy/build/kissy.js"></script>
</head>
<body>
    <script>
        KISSY.ready(function(S) {
            function Person() {
                var self = this;
                self.tagNode = [];
            }

            S.augment(Person, {
                addTag: function (tag) {
                    var self = this;
                    self.tagNode.push(tag);
                },
                readTags : function () {
                    var self = this;
                    for (var i = 0; i < self.tagNode.length;i++) {
                        alert(self.tagNode[i]);
                    }
                }
            });



            var zipeng = new Person();
            zipeng.addTag('qiaofu');
            zipeng.addTag('zipeng');
            zipeng.readTags();
        });
    </script>
</body>
</html>